<template>
    <div>
        <van-dropdown-menu>
            <van-dropdown-item v-model="value1" :options="option1" />
            <van-dropdown-item v-model="value2" :options="option2" />
        </van-dropdown-menu>

    </div>
</template>

<script>
    import Vue from 'vue';
    import { DropdownMenu, DropdownItem } from 'vant';

    Vue.use(DropdownMenu);
    Vue.use(DropdownItem);


    export default {
        name:"shopPull",
        data() {
            return {
                value1: 0,
                value2: 'a',
                option1: [
                    { text: '全部商品', value: 0 },
                    { text: '自营商品', value: 1 },
                    { text: '二手商品', value: 2 },
                ],
                option2: [
                    { text: '默认排序', value: 'a' },
                    { text: '价格排序', value: 'b' },
                    { text: '销量排序', value: 'c' },
                ],
            };
        },
    };
</script>

<style scoped>

</style>